﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SupDataSync.Common
{
    /// <summary>
    /// 系统配置
    /// </summary>
    public class SysConfig
    {
        /// <summary>
        /// 本地数据库连接串
        /// </summary>
        public static string ConnectionStr { get; set; }
        /// <summary>
        /// 数据库IP
        /// </summary>
        public static string ClientIP { get; set; }
        /// <summary>
        /// 数据库端口
        /// </summary>
        public static string ClientPort { get; set; }
        /// <summary>
        /// 数据库名
        /// </summary>
        public static string ClientDbName { get; set; }
        /// <summary>
        /// 数据库用户名
        /// </summary>
        public static string ClientUser { get; set; }
        /// <summary>
        /// 数据库密码
        /// </summary>
        public static string ClientPwd { get; set; }

        /// <summary>
        /// 要导入的租户ID
        /// </summary>
        public static int TenantId { get; set; }
        /// <summary>
        /// 服务超时时长（秒）
        /// </summary>
        public static int TimeOutSecond { get; set; }
        /// <summary>
        /// 测试服务
        /// </summary>
        public static string TestApiUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public static string GetTenantApiUrl { get; set; }
        private static string syncurl ="";
        /// <summary>
        /// 基础数据服务
        /// </summary>
        public static string SyncBaseApiUrl { get {
                return syncurl;// +  ":5007/SupForOut/SupDataSync";
            } set {
                syncurl = value;
            } }
        /// <summary>
        /// 业务数据服务
        /// </summary>
        public static string SyncBusinessApiUrl { get; set; }
    }
}
